package com.tianmenguide.wxapi;

import com.tianmenguide.common.annotation.Log;
import com.tianmenguide.common.core.controller.BaseController;
import com.tianmenguide.common.core.domain.AjaxResult;
import com.tianmenguide.common.enums.BusinessType;
import com.tianmenguide.guide.domain.Banners;
import com.tianmenguide.guide.domain.Feedback;
import com.tianmenguide.guide.service.IBannersService;
import com.tianmenguide.guide.service.IFeedbackService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/wxapi")
@RequiredArgsConstructor
@Api(tags = "反馈信息wxapi")
public class WxFeedbackController extends BaseController {

    private final IFeedbackService feedbackService;

    /**
     * 新增反馈建议
     */
    @ApiOperation("新增反馈建议")
    @PostMapping("/feedback")
    public AjaxResult add(@RequestBody Feedback feedback)
    {
        return toAjax(feedbackService.insertFeedback(feedback));
    }
}
